<?php
/**
 * @package EasyTop
 * @subpackage PlusTheme
Template Name: projects-index
 */
get_header();
?>
<div class="wrapper col2">
  <div id="breadcrumb">
    <ul>
      <?php echo easytop_breadcrumb();?>
    </ul>
  </div>
</div>
<!-- ####################################################################################################### -->
<?php
while (have_posts()) {
	the_post();
	$args = array('post_type'=>'page','post_parent'=>get_the_ID());	
}
$the_query = new WP_Query( $args );
?>
<div class="wrapper col3">
  <div id="container">
	<?php while ( $the_query->have_posts()) : $the_query->the_post();?>
	<div id="project-<?php the_ID(); ?>" class="project-thumbnail">
        <a href="<?php the_permalink();?>"><img src="<?php easytop_thumb_img(get_the_ID());?>"/></a>
        <p><a href="<?php the_permalink();?>"><?php the_title(); ?></a></p>
	</div>
	
	<?php endwhile;?>
    <br class="clear" />
  </div>
</div>

<?php get_footer(); ?>
